package com.example.demo;

import com.example.demo.mapper.loginMapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

//观看顺序：yml文件-->resources/mapping/login.xml-->com.example.demo.mapper下的loginMapper-->com.example.demo.controller的loginController
//@MapperScan表示根据包路径，向下寻找mybatis接口      com.example.demo.mapper下的loginMapper就是mybatis接口   123
@MapperScan("com.example.demo.mapper")
@SpringBootApplication
public class DemoApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {

		SpringApplication.run(DemoApplication.class, args);
	}

}
